package com.itheima.d20_math;

public class MathDemo {
    public static void main(String[] args) {
        //1 abs
        double s = 4.5;
        System.out.println(Math.abs(s));
        // 指数次方
        System.out.println(Math.pow(2,2));
        //四舍五入
        System.out.println(Math.round(4.5));
        //Math里有个random方法
        System.out.println(Math.random());
    }
}
